@media screen and (min-width: 831px) {
}

html {
    font-size: 16px;
}
h2 {
    font-size: 1.8rem;
}

.iconfont {
    font-size: 20px;
}

body {
    overflow-x: hidden;
    overflow-y: auto;

    position: relative;

    margin: 0;
    box-sizing: border-box;
    padding-left: 188px;
    height: 100vh;

    background: #121316;

    transition: padding .4s cubic-bezier(.38, .01, .09, .98);
}

body.shouqi {
    padding-left: 10px !important;
}

/* 通用按钮样式 */
.button {
    display: inline-block;

    border-radius: 4px;
    padding: 10px 15px;

    font-size: 1rem;
    font-weight: 700;

/* 字符间距 */
    letter-spacing: 1px;

    color: #FFFFFF;
    background-color: hsl(227.3684210526deg 12.2580645161% 30.3921568627%);

    text-shadow: 0 -1px 0 rgb(0 0 0 / 12%);
}

.button.sign {
    border: 3px solid hsl(139deg 59% 55%);

    color: #000000;
    background: hsl(139deg 59% 55%);
}

.button.login {
    margin: 0 15px 0 10px;
    border: 3px solid #444857;

    background: #444857;
}

/* 鼠标移过，背景和边框一起改，内边距做得到吗~ */
.button.sign:hover {
    border: 3px solid hsl(139.6153846154deg 59.0909090909% 34.5098039216%);

    color: #FFFFFF;
    background: hsl(139.6153846154deg 59.0909090909% 34.5098039216%);
}

.button.login:hover {
    border: 3px solid rgb(90, 95, 115);

    background: rgb(90, 95, 115);
}

/* 通用小按钮 */
.ant-btn{
    padding: 10px 15px;
    letter-spacing: 1px;
    margin-right: 1px;
    border-radius: 0;
    border: 0;
    background: #444857;
    color: #fff;
    display: inline-block;
}
.ant-btn.active{
    color: #E3E4E8;
    background: #5A5F73;
    box-shadow: inset 0 3px #868CA0;
}
.ant-btn:hover {
    background: rgb(90, 95, 115);
}

/* 侧边栏 */
.main-side {
    position: fixed;
    top: 0;
    left: 0;

/* 让隐藏按钮显示在上层 */
    z-index: 16;

    width: 188px;
    min-height: 100%;

    color: #FFFFFF;
    background: #1D1E25;

    box-shadow: 2px 0 5px rgb(0 0 0 / 20%);

    transition: transform .4s cubic-bezier(.38, .01, .09, .98);
    transform: translateX(0);
}

/* logo部分 */
.main-side .logo {
    margin-top: 5px;
    margin-bottom: -5px;
    padding: 0 1.25rem;
    height: 100px;
}

.main-side .logo img {
    width: 100%;
    height: 100%;
}

.logo-text {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* 点击按钮给侧边栏平移 */
.pingyi {
    transform: translateX(-100%);
}

/* /* 隐藏按钮 */
/* 设置按钮为透明，超出隐藏，有形的svg图片在移动  */
.side-toggle .side-button {
    visibility: hidden;
    overflow: hidden;

    position: absolute;
    top: 22px;
    left: 188px;

    width: 27px;
    height: 24px;

    opacity: 0;

    transition: opacity .4s ease-in-out, visibility .4s linear;
    transform: scale(.9);
    transform-origin: left center;

/* font-size: 16px; */

    cursor: pointer;
}

.side-toggle .side-button.visible {
    visibility: visible;

    z-index: 99;

    opacity: 1;
}

/* 为了收回按钮时不突兀，父元素必须给透明度设置过渡，不能瞬间变透明 */
.side-toggle .side-button .icon {
    /* 利用边框缩小图片 */
    border: 2px rgb(89, 94, 114) solid;
    border-radius: 0 6px 6px 0;
    width: 80%;
    height: 80%;

    background-color: rgb(89, 94, 114);

    transition: transform .4s ease-in-out, background-color .2s ease,
    transform .2s ease-in-out, border .2s ease;
    transform: translateX(-100%);
}

/* 移动和变换方向 */
.side-toggle .side-button .icon.translateX-0 {
    transform: translateX(0);
}
.side-toggle .side-button .icon.xuanzhuan {
    transform: rotate(180deg);
}
.side-toggle .side-button .icon:hover {
    border: 2px rgb(112, 118, 143) solid;

    background-color: rgb(112, 118, 143);
}

/* 回收后保留竖条 */
.side-strip {
    visibility: hidden;

    position: fixed;
    top: 0;
    bottom: 0;

/* 父元素百分之百，意味着和父元素动态改变 */
    left: 100%;
    z-index: -1;

    width: 12px;
    min-height: 100vh;

    opacity: 0;

    transition: opacity .3s linear, visibility .4s linear;

    cursor: pointer;
}

.side-strip.visible {
    visibility: visible;

    z-index: 1;

/* background-color: #fce47c; */

    background: repeating-linear-gradient(
    45deg,
    #1D1E25,
    #1D1E25 2px,
    #595E72 0,
    #595E72 4px
    );

    opacity: .3;
}

.side-strip.visible:hover {
    /* background-color: #ffbf00; */
    opacity: .6;

    animation: color-change .4s ease-in-out infinite;
}

@keyframes color-change {
    0% {
        background: repeating-linear-gradient(
        45deg,
        #1D1E25,
        #1D1E25 2px,
        #595E72 0,
        #595E72 4px
        );
    }

    25% {
        background: repeating-linear-gradient(
        45deg,
        #595E72,
        #595E72 2px,
        #1D1E25 0,
        #1D1E25 4px
        );
    }

    50% {
        background: repeating-linear-gradient(
        45deg,
        #1D1E25,
        #1D1E25 2px,
        #595E72 0,
        #595E72 4px
        );
    }

    75% {
        background: repeating-linear-gradient(
        45deg,
        #595E72,
        #595E72 2px,
        #1D1E25 0,
        #1D1E25 4px
        );
    }

    100% {
        background: repeating-linear-gradient(
        45deg,
        #1D1E25,
        #1D1E25 2px,
        #595E72 0,
        #595E72 4px
        );
    }
}

/* 侧边栏列表 */
.main-side .start-text {
    display: block;

    margin: .75rem 1.25rem;

    font-size: .75rem;

    color: #A9ADBC;
}

/* 开始按钮，背后不断滑动方块，设置超出隐藏 */
.main-side .start-button {
    display: block;
    overflow: hidden;

    position: relative;

    margin: 0 auto;
    border-radius: 6px;
    padding: 3px;

/* 计算表达式两边要加空格 */
    width: calc(100% - 2.75rem);

    text-align: center;
}

.main-side .start-button::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -999;

    width: 200%;
    height: 100%;

    background: linear-gradient(
    115deg,
    #4FCF70,
    #FAD648,
    #A767E5,
    #12BCFE,
    #44CE7B
    );
    background-size: 50% 100%;

    content: '';

    /* animation: slide 1s linear infinite;  */
}

.main-side .start-button:hover::before {
    animation: slide 1s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.main-side .start-button span {
    display: block;

    z-index: 2;

    border-radius: 3px;
    padding: .875rem 0;
    height: 100%;

    font-size: 20px;

    color: #FFFFFF;
    background: #000000;
}

html {
    font-size: 16px;
}

/* 游戏，创意，技术 */
.myhref {
    margin-top: 1rem;
}

.myhref .link {
    display: flex;

    padding: .75rem 1.375rem;

    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    text-align: left;

    justify-content: space-between;
    align-items: center;
}

.myhref .link:hover {
    background-color: #121316;
}

.myhref .link .icon {
    width: 1.3333rem;
    height: 1.3333rem;

    text-align: center;
}

/* 切换主题按钮 */
.mytheme {
    margin-top: 2rem;
}

.mytheme .mytheme-button {
    display: flex;

    padding: .75rem 1.375rem;

    font-size: 1.125rem;
    font-weight: 500;

    color: #FFFFFF;
}

.mytheme .mytheme-button:hover {
    background-color: #121316;
}

/* 主界面 */
/* 搜索框 */
.search {
    display: flex;

    position: relative;

    padding: 1rem 0 1rem 1rem;
    height: 74px;

    align-items: center;
}

.search .search-form {
    flex: 1;
}
.search .search-form:checked {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.search .search-form .search-label {
    display: block;

    position: relative;

    font-size: 1.3rem;
}

.search .search-form .search-label svg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: .6em;

    margin: auto auto auto 0;
    width: 1rem;
    height: 1rem;

    fill: #70768F;
}

.search .search-form .search-label .search-input {
    margin: 0;
    border: 0;
    border-radius: 4px;
    padding: .45em;
    width: 100%;

/* 继承父元素字体大小，撑大外部 */

    font-size: 1.3rem;
    text-indent: 1.5em;

    color: #FFFFFF;
    background: #262931;

/* 修改游标 */

    caret-color: #FFFFFF;
}
.search .search-form .search-label .search-input:focus {
    background-color: rgb(44, 48, 58);
}

.search .search-form .search-label .search-input::placeholder {
    color: #B7BBC8;
}

/* 登录注册 */
.user-button {
    display: flex;

    margin-left: 1rem;
}

/* 下拉列表 */
.xiala {
    display: flex;
    visibility: hidden;

    position: absolute;

    padding-left: 1rem;
    width: 100%;

    opacity: 0;
    box-shadow: 0 .5rem 1.5rem rgba(19, 20, 23, .9);

    transition: all .15s cubic-bezier(.8, 0, .6, 1);
    transform: translateY(-10%);
}
.xiala.visible {
    visibility: visible;

    opacity: 1;
}

.xiala .xiala-button {
    display: flex;

    margin-left: 10px;
    border-radius: 5px;
    padding: 0 15px;
    height: 2rem;

    font-size: 20px;
    line-height: 2rem;

    color: #717790;
    background-color: #1E1F26;

    transition: all .2s linear;
}

.xiala .xiala-button span {
    padding-right: 8px;

    text-align: center;
}

.xiala-button.current {
    color: rgb(245, 245, 255);
    background-color: #868C99;
}
.xiala-button span.current {
    color: #12BCFE;
}
.xiala .xiala-button:hover {
    color: rgb(245, 245, 255);
    background-color: #868C99;
}

/* 主界面头部 */
.wrapper {
    position: relative;

    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    max-width: 1200px;
}

.home-header {
    padding: 3rem 0;
}

.home-header .wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;
    grid-gap: 2rem;
}
/* 右下角背景图 */
.home-header .wrapper .img-bg {
    position: absolute;
    right: -89px;
    bottom: -546px;

    width: 600px;
}

/* 左边文本区域 */
.home-header .info {
    position: relative;
}
.home-header .text {
    position: relative;

    letter-spacing: 1px; /* 设置文字间距 */
}
.text h1 {
    margin-top: 0;
    margin-bottom: .5em;

    font-size: 2rem;
    font-weight: 500;
    text-align: center;

    color: #FFFFFF;
}
.text p {
    margin-bottom: 2rem;

    font-size: 1.2rem;

    color: #B4B8CD;
}
.text p strong {
    color: #FFFFFF;
}
.text .sign {
    margin-left: 50%;
    padding: 10px 16px;

    transform: translateX(-50%);
}
.speed-teacher {
    display: flex;
    overflow: hidden;

    position: relative;

    margin: 5rem 1rem 1rem;
    border-radius: 4px;
    width: 35rem;
    height: 6rem;

    background-color: hsl(223.6363636364deg 12.9411764706% 16.6666666667%);
}
.speed-teacher .huojian {
    display: flex;

/* 遮罩层 */

    position: absolute;

    width: 35rem;
    height: 6rem;

    background-color: #1D1E22;

    opacity: .8;

    transition: all .3s;
    transform: translateY(-100%);

    justify-content: center;
    align-items: center;
}
.speed-teacher .huojian .icon {
    transform: rotate(180deg);
}
.speed-teacher:hover .huojian {
    transform: translateY(0);
}
.speed-teacher-context {
    margin: 0 auto;

    font-size: .9rem;
    text-align: center;

    color: hsl(226.1538461538deg 12.037037037% 57.6470588235%);
}
.speed-teacher-context h2 {
    margin-top: 1.5rem;
    margin-bottom: .2rem;

    font-size: 1.5rem;

    color: hsl(226.6666666667deg 12% 85.2941176471%);
}

/* 右边代码动画 */
.code-show {
    position: relative;

    min-height: 410px;

    color: #FFFFFF;
}
.code-show .code-bg {
    position: absolute;
    right: 0;

    border-radius: 10px;
    width: 90%;
    height: 410px;

    background: linear-gradient(109.61deg, #4C4F5A 4.26%, #202125 84.84%);
}
/* 三个代码块共有样式 */
.code-show .code {
    position: absolute;

    border-radius: 6px;
    width: 300px;
    height: 140px;

    background-color: #1D1E22;

    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}
.code header {
    display: grid;

    grid-template-columns: 36px auto 36px;
    align-items: center;
}
.code header svg {
    margin: 10px;
}
.code header h1 {
    font-family: Lato, sans-serif;
    font-size: 13px;
    font-weight: 900;
    /* 设置字符间距 */
    letter-spacing: 1.57px;

    color: #C5C8D4;
}
.code .code-content {
    margin: 0 10px 10px;

    font-size: 13px;
    line-height: 1.3;
}
/* 代码颜色，直接拷贝官网 */
.HomepageAnonHeaderHero_cr-aN2bn {
    color: #A88038;
}
.HomepageAnonHeaderHero_cy-JVLez {
    color: #E1CA72;
}
.HomepageAnonHeaderHero_cg-49xQf {
    color: #74B087;
}
.HomepageAnonHeaderHero_cr-aN2bn {
    color: #A88038;
}
.HomepageAnonHeaderHero_cb--MbF\+ {
    color: #7A99AD;
}
.HomepageAnonHeaderHero_cg-49xQf {
    color: #74B087;
}
.HomepageAnonHeaderHero_cc-Zftdz {
    color: #666666;
}
.HomepageAnonHeaderHero_cy-JVLez {
    color: #E1CA72;
}
.HomepageAnonHeaderHero_cb--MbF\+ {
    color: #7A99AD;
}
.HomepageAnonHeaderHero_cp-23ozZ {
    color: #9F8198;
}
.HomepageAnonHeaderHero_co-\+ACpm {
    color: #DE7300;
}
/* 单个代码框 */
.code-show .html-show {
    top: -20px;
    right: 20px;
}
.code-show .css-show {
    top: 130px;
    right: -30px;
}
.code-show .js-show {
    top: 280px;
    right: 40px;
}
/* 缩进 */
.HomepageAnonHeaderHero_line2-j1x2U {
    margin-left: 2rem;
}
.HomepageAnonHeaderHero_line3-pAv\+x,.HomepageAnonHeaderHero_line4-wTffx,.HomepageAnonHeaderHero_line5-b\+wBt {
    margin-left: 4rem;
}

/* 打字机代码部分 */
.css-show p {
    display: inline-block;
    overflow: hidden;

    margin-top: 0;
    margin-bottom: 0;

/* width: 0; */
    /* both使得开始时隐藏 */
    /* animation: dazi 3s steps(30) both, caret .5s step-end infinite; */
    /* animation-fill-mode: forwards; */
    border-right: .15em solid transparent;
    height: 1.2em;

/* 等宽字体很重要 */

    font-family: Consolas, Monaco, monospace;
    line-height: 1;
    white-space: nowrap;
}

/* 打字动画 */
@keyframes dazi {
    from {
        width: 0;
    }
}

@keyframes caret {
    50% {
        border-right-color: #FFFFFF;
    }
}

/* 主体区域 */
/* 三张卡片 */
.home-content {
    position: relative;

    padding: 3rem 0;

    color: #FFFFFF;
}
.home-content .three-card {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 2rem;
}
.home-content .three-card .card {
    position: relative;
    z-index: 1;

    margin: 2rem 0;
    border-radius: 10px;
    padding: 1.5rem 1.5rem 2rem;

    background-color: hsl(222.8571428571deg 13.7254901961% 20%);
}

.card .card-icon {
    margin-top: -60px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    width: 75px;
    height: 75px;

    background: hsl(225deg 9.5238095238% 8.2352941176%);
}
.card .card-icon span {
    display: inline-block;

    margin: 10px 15px 0;

    font-size: 45px;

    color: #FFFFFF;
}
.card h2 {
    margin-bottom: 20px;
}
.card p {
    margin-bottom: 5em;

    line-height: 2;

    color: hsl(230deg 12% 80.3921568627%);
}
.card a {
    position: absolute;
    bottom: 2em;
}
/* 左下角图片 */
.three-card .img-bg {
    position: absolute;
    bottom: -36px;
    left: -10%;

    width: 400px;
}

/* 创意展示 */
.idea {
    display: grid;

    margin-bottom: -3rem;
    padding: 6rem 0 0;

    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-gap: 3rem 3rem;

/* 设置不规则时的对齐方式，容错 */
    align-items: start;
    justify-items: center;
}
.idea h2 {
    margin-bottom: 10px;
}
.idea article {
    display: flex;

    position: relative;

/* 占满所在grid区域 */

    width: 100%;

    flex-direction: column;
}
.idea article .zhezhao {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;

    margin: -1rem;
    border-radius: 10px;

    background-color: hsl(232.5deg 11.7647058824% 13.3333333333%);

    transition: clip-path .3s ease .1s;

    content: '';

    -webkit-clip-path: inset(2rem 0 2rem 2rem round 10px);
            clip-path: inset(2rem 0 2rem 2rem round 10px);
}
.idea article:hover .zhezhao {
    -webkit-clip-path: inset(0 0 0 0 round 10px);
            clip-path: inset(0 0 0 0 round 10px);
}

/* 创意展示图片区域动效 */
.idea article .idea-project {
    overflow: hidden;

    border-radius: 6px;
}
.idea-project .idea-project-content {
    position: relative;

    padding-top: 56.25%;

    background: #444857;
    background-size: cover;
}
.idea article .idea-project img {
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}
/* 内嵌iframe */
.idea-project-content iframe {
    position: absolute;
    top: -2px;
    left: -2px;

    border: 0;
    width: calc(200% + 5px);
    height: calc(200% + 5px);

/* transition: opacity .4s linear .1s; */

    transform: scale(.5);
    transform-origin: top left;
}
.idea-project-content a.fugai {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.idea-project-content a.href-model {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;

    padding: 1rem 1rem 1rem 20%;

    opacity: 0;

    transition: all .25s cubic-bezier(.5, 0, .5, 1);
}
.idea-project-content a.href-model::before {
    position: absolute;
    top: 0;
    right: 0;

    width: 100%;
    max-width: 200px;
    height: 100%;
    max-height: 200px;

    background: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, .7),
    rgba(0, 0, 0, .2),
    transparent 49%
    );

    opacity: .8;

    transition: inherit;
    transform: scale(.9);
    transform-origin: top right;

    content: '';
}
.idea-project-content a.href-model:hover::before {
    opacity: .99;

    transform: none;
}
.idea article:hover a.href-model {
    opacity: 1;
}
.idea-project-content .href-model button {
    border-radius: 6px;
    padding: .5rem;

    background-color: hsl(228deg 12.1951219512% 40.1960784314%);

    box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);

    transition: .25s cubic-bezier(.5, 0, .5, 1);
    transition-property: transform, background-color, opacity;
    transform: translate(.25rem) scale(.9);
}
.idea-project-content .href-model button svg {
    /* 行内元素会撑大父盒子 */
    display: block;

    width: 16px;
    height: 16px;
}
.idea article:hover button {
    transform: scale(.9);
}
.idea-project-content .href-model:hover button {
    color: #FFFFFF;
    background-color: hsl(228.3870967742deg 12.2529644269% 50.3921568627%);

    transform: scale(1);
}

/* 创意展示名片部分 */
.idea-title header {
    display: flex;

    position: relative;

    margin-top: 1rem;

    align-items: center;
}
.idea-title header a {
    display: block;

    margin-right: .75rem;
}
.idea-title header a img {
    display: block;
    overflow: hidden;

    border-radius: 4px;
    width: 40px;
    height: 40px;

    background: hsl(227.3684210526deg 12.2580645161% 30.3921568627%);
}
.idea-title-h {
    white-space: nowrap;
    text-overflow: ellipsis;

    flex: 1;
}
.idea-title-h h2 {
    margin-bottom: .25rem;

    font-size: 17px;
    font-weight: 900;

    color: #FFFFFF;
}
.idea-title-h .idea-user {
    display: flex;

    font-size: 14px;

    align-items: center;
}
.idea-title-h .idea-user a {
    display: inline-block;

    width: 50%;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: inherit;
}
.idea-title-h .idea-user span {
    font-size: 13px;

    color: #868C99;
}

.idea footer {
    display: flex;

    margin-top: .5rem;
    margin-bottom: -.5rem;

    font-size: 12px;

    align-items: center;
}
.idea footer .coment svg {
    display: inline-block;

    margin-right: 5px;
    width: 12px;
    height: 12px;

    transition: all .25s linear;
}
.idea footer .coment {
    display: flex;

    margin-right: 5px;
    padding: 3px 7px;

    opacity: 0;

    transition: all .12s ease;
    transition-timing-function: cubic-bezier(1, 0, .65, .75), linear;
    transition-property: transform, opacity;
    transform: translateY(-50%);

    align-items: center;
}
.idea footer .coment:nth-child(2) {
    transition-delay: .05s;
}
.idea footer .coment:nth-child(3) {
    transition-delay: .1s;
}
.idea article:hover footer .coment {
    opacity: 1;

    transition-delay: .09s;
    transition-timing-function: cubic-bezier(.2, .15, .1, 1), ease;
    transform: translateY(0);
}

/* 教程样式 */
.teacher {
    position: relative;

    margin-top: 3rem;
    padding-top: 3rem;
    padding-bottom: 25rem;

    color: #FFFFFF;
    background: rgb(24, 25, 30);
}
.teacher .teacher-head {
    margin-bottom: 3rem;

    text-align: center;
}
.teacher-head h2 {
    margin: 0 0 10px;
}
.teacher-head a {
    color: hsl(196.204379562deg 100% 73.137254902%);
}

.teacher .wrapper {
    display: grid;

    grid-template-columns: 33% 66%;
    grid-gap: 2rem;
}
.editor li {
    margin: .5rem 0;
}
/* html新标签，可折叠的内容块 */
.editor li details {
    border-radius: 6px;
    padding: .75rem 1rem;

    color: hsl(230deg 12% 80.3921568627%);

    transition: all .3s ease;

    cursor: pointer;
}
.editor li details[open] {
    background: hsl(225deg 9.5238095238% 8.2352941176%);
}
.editor li details[open]:hover {
    background: rgb(23, 24, 29);
}
.editor li details summary {
    font-size: 1.1rem;
    font-weight: 700;

    color: var(--cp-color-1);
}
.editor li details p {
    margin-top: .5rem;
}

/* 图片切换动画 */
.qietu {
    position: relative;

    margin-bottom: -3rem;
}
.qietu ul li {
    visibility: hidden;

    position: absolute;
    top: 0;

    opacity: 0;

    transition: all 1s ease;
    transform: translateY(100%);
}
.qietu ul li.active {
    visibility: visible;

    opacity: 1;

    transform: translateY(0);
}


/* 模态框 */
.animal-model {
    visibility: hidden;
    
    position: relative;
    z-index: 100;
    
    opacity: 0;
    
    transition: opacity .3s ease-in-out,
    transform .3s cubic-bezier(.3, 0, .3, 1);
}
.animal-model[data-open='true'] {
    visibility: visible;

    opacity: 1;
    /* transform: none;
    transition-delay: 0s; */
}
.animal-model-content {
    overflow: hidden;
    overflow-y: scroll;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, .7);

    backdrop-filter: blur(3px);
}
.animal-model-content .model-dangban {
    display: flex;

    height: 100px;

    background-color: rgb(30, 31, 38);
}
.animal-model-content article {
    display: flex;

    position: relative;
    z-index: 2;

    margin: 40px auto;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    min-height: 100vh;

    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);

    flex-direction: column;
}
.animal-model-content article header {
    display: flex;

    position: relative;

    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1.125rem 1rem 1rem;

    background-color: hsl(222.8571428571deg 13.7254901961% 20%);

    box-shadow: 0 2px 5px rgba(0, 0, 0, .5);

    align-items: center;
}
.animal-model-content .model-title {
    display: grid;

    margin-left: calc(-1rem - 10px);

    flex-grow: 1;
    grid-template-columns: minmax(40px, auto) 1fr;
    grid-template-rows: auto auto;
    grid-gap: 0 1rem;
    align-items: center;
}
.animal-model-content .model-title h1 {
    display: flex;

    font-size: 1.1333em;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;

    align-items: center;
}
.animal-model-content .model-title .user-img {
    display: block;
    overflow: hidden;

    border-radius: 3px;

    grid-row: 1/-1;
}
.animal-model-content .model-title .user-img img {
    display: block;

    width: 40px;
    height: 40px;
}
.animal-model-content .model-title a {
    margin-left: 0;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: hsl( 226.6666666667deg 11.8421052632% 70.1960784314% );
}
.model-head-button {
    display: flex;

    margin-top: -.125rem;
}
.model-head-button button {
    padding: 7px 10px;
}
.model-head-button button svg {
    display: inline-block;

    font-size: 16px;
}
.model-head-button a {
    margin-left: 0 !important;
}
/* 中间展示部分 */
.model-show {
    display: flex;

    height: 50vh;

    flex-direction: column;
}
.model-show nav {
    display: flex;

    padding: 0 8px;
    height: 50px;

    background-color: #1E1F26;
}
.model-show .coder-nav {
    display: flex;

    width: 50%;

    align-items: center;
}
/* .model-show .coder-nav .button {
    margin: 0;
    margin-left: 1px;
    border: 0;
    border-radius: 0;
    padding: 6px 15px;

    font-size: 14px;
    font-weight: 400;
}
.model-show .coder-nav .button.active {
    color: #E3E4E8;
    background: #5A5F73;

    box-shadow: inset 0 3px #868CA0;
} */
.show-iframe {
    display: flex;

    height: calc(100% - 80px);
}
.show-iframe .box {
    display: none;

    position: relative;

    background: #131417;
}
.show-iframe .box.active {
    display: block;

    width: 50%;
    height: 100%;
}
.show-iframe .box pre {
    overflow: auto;

    margin: 0 5px;
    /* width: 100%; */
    height: 100%;

    font-size: 13px;

/* 自动换行 */
    white-space: pre-wrap;

    background-color: rgb(19,20,23);
}
.show-iframe .box pre::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
.show-iframe .box pre code {
    padding:0;
    overflow: visible;

    color: #D5D7DE;
    background-color: rgb(19,20,23);
}

/* 内嵌创意展示 */
.model-user-iframe {
    height: 100%;
    background: #1e1f26;

    flex: 1;
}
.model-user-iframe iframe{
    overflow: auto;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
.model-user-iframe.zoom-1 iframe {

    width: 100%;
    height: 100%;
}
.model-user-iframe.zoom-05 iframe{
    overflow: auto;
    width: 200%!important;
    height: 200%!important;
    -webkit-transform: scale(.5);
    transform: scale(.5);
}
.model-user-iframe.zoom-025 iframe{
    overflow: auto;
    width: 400%!important;
    height: 400%!important;
    -webkit-transform: scale(.25);
    transform: scale(.25);
}
/* 脚部缩小 */
.model-show footer{
    height: 30px;
    background-color: #1e1f26;
    padding: 0 8px;
    display: flex;

}
.model-show footer .code-footer-zhanwei{
    width: 50%;
    display: none;
}
.model-show footer .code-footer-zhanwei.active{
    display: block;
}
.model-show footer .code-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}
.model-show footer .code-footer .zoom{
    display: flex;
    align-items: center;
}
.model-show footer .code-footer .ant-btn{
    padding: 3px 5px;
}
.model-show footer .code-footer .zoom .ant-btn:first-child{
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.model-show footer .code-footer .zoom .ant-btn:last-child{
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}